package com.qidianit.mes.pojo.pro;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qidianit.mes.pojo.Material;
import com.qidianit.mes.pojo.Unit;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author: YKYB
 * @Date: 2025/9/20 11:47
 * @Description: WorkflowProduct实体类
 */
@Data
@TableName("workflow_product")
public class WorkflowProduct {

    private Long id;
    private Long workflowId;
    private String productCode;
    private String remarks;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    private String createBy;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime;
    private String updateBy;

    private Integer deleteFlag;

    private Material material;          // 物料对象
    private Unit unit;                // 单位对象
}
